package opensource.web.util.json;

public class JsonA {
	
	private StringBuffer str;
	
	public JsonA(){
		str = new StringBuffer("[]");
	}
	
	public void append(JsonO jsonO){
		str = str.deleteCharAt(str.length()-1);
		if(str.length() == 1) {
			str.append(jsonO.getString());
		} else {
			str.append(",");
			str.append(jsonO.getString());
		}
		str.append("]");
	}
	
	public String getString(){
		return str.toString();
	}
}
